package com.xzz.cloud.alibaba.service.impl;

import com.xzz.cloud.alibaba.dao.AccountDao;
import com.xzz.cloud.alibaba.service.AccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: hhz
 * @createDate: 2021-4-6
 */
@Service
@Slf4j
public class AccountServiceImpl implements AccountService {
    @Resource
    private AccountDao accountDao;
    @Override
    public void decrease(Long userId, Integer money) {
        log.info("------------->account-service中扣减账户余额开始");
        accountDao.decrease(userId,money);
        log.info("------------->account-service中扣减账户余额结束");
    }
}
